package zh.codegym.task.task05.task0525;

/* 
整只鸭子还不够
*/

public class Solution {

    public static void main(String[] args) {
        Duck duck1 = new Duck();
        Duck duck2 = new Duck();
        System.out.println(duck1);
        System.out.println(duck2);

        Dog duck3 = new Dog();
        Dog duck4 = new Dog();
        System.out.println(duck3);
        System.out.println(duck4);

        Cat duck5 = new Cat();
        Cat duck6 = new Cat();
        System.out.println(duck5);
        System.out.println(duck6);

        //在此编写你的代码
    }

    public static class Duck {

        @Override
        public String toString() {
            return "Duck";
        }
    }

    //在此编写你的代码
    public static class Cat{
        @Override
        public String toString() {
            return "Cat";
        }
    }

    public static class Dog{
        @Override
        public String toString() {
            return "Dog";
        }
    }

}
